<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>String</title>
        
    </head>
    <body>
        <script type="text/javascript">
        //生成指定范围内的随机数
        var start = 10;
        var end = 16;
        //random():返回0（包含）~1（不包含）之间的随机数
        var result = Math.floor(Math.random() * (end - start + 1) + start);
        console.log(result)

        </script>
    </body>
</html>